<template>
	<view class="content">
		<web-view :webview-styles="webviewStyles" :src="srcurl"></web-view>
	</view>
</template>

<script>  
	export default {
		data() {
			return { 
				webviewStyles:{ 
					progress:{}
				},
				srcurl:'',
				viewurl:' ',
				fileurl:''  , 
			};
		},
		beforeDestroy() {     
	 
		},
		onLoad(option) {
			const infos =  JSON.parse(decodeURIComponent(option.info))
			console.log(option);
			uni.setNavigationBarTitle({ title: infos.title }); 
			// this.fileurl = option.hturl 
			this.srcurl = infos.url
			console.log(this.srcurl)
			// var surl = 'http://sys3.lgkj365.com/admin/common/renderImage/1428243620758552577'
			// this.srcurl = `${this.viewurl}?file=${encodeURIComponent(surl)}`
		},
		methods: {
			
	
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 700rpx;
		margin: 0 25rpx;
	}
</style>
